<?php
    // +----------------------------------------------------------------------
    // | cms模块公共控制器
    // +----------------------------------------------------------------------
    // | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
    // +----------------------------------------------------------------------
    // | Author: 微尘 <yicmf@qq.com>
    // +----------------------------------------------------------------------
    namespace app\controller\cms;


    use think\facade\Config;
    use app\common\controller\Base;

    class Common extends Base
    {

        protected $user;

        // 初始化
        protected function initialize()
        {
            parent::initialize();
            if (Config::get('setting.web_site_close')) {
                $this->error('站点已经关闭，请稍后访问~');
            }
        }

    }
